<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/4/29/029
 * Time: 14:11
 */

namespace app\Lib\Model\Order;


use app\Lib\Model\DbModel\OrderInfo;
use app\Lib\Model\User\User;

class GetMySite
{
    private $user;
    public function __construct(User $user)
    {
        $this->user = $user;
    }

    public function run(){
        $order = (new OrderInfo());
        $map[$order->_site_supervisor_uid] = $this->user->getUid();
        $map[$order->_orderStatus] ='underconstruction';
        return  $order->where($map)->column($order->_user_address,$order->_order_number);
    }
}